﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.ServiceModel.Syndication;

//namespace dasBlog.Storage.Data
//{
//    public class SyndicationTextEntryStorageProvider : IStorageProvider<TextEntry>
//    {
//        Func<string, MonikerMatch, QueryDescription, SyndicationFeed> feedAcquisitionFunction;

//        public SyndicationTextEntryStorageProvider(Func<string, MonikerMatch, QueryDescription, SyndicationFeed> feedAcquisitionFunction)
//        {
//            this.feedAcquisitionFunction = feedAcquisitionFunction;
//        }
        
//        #region IItemStorageProvider<TextEntry> Members

//        public string Add(string contextId, TextEntry item)
//        {
//            throw new NotSupportedException();
//        }

//        public void Delete(string itemId)
//        {
//            throw new NotSupportedException();
//        }

//        public TextEntry Get(string itemId)
//        {
//            throw new NotSupportedException();
//        }

//        public IEnumerable<TextEntry> Select(string contextId, MonikerMatch contextMatch, QueryDescription query)
//        {
//            List<TextEntry> entries = new List<TextEntry>();
//            SyndicationFeed feed = feedAcquisitionFunction(contextId, contextMatch, query);
//            foreach (SyndicationItem item in feed.Items)
//            {
                
//            }
//            return entries;
//        }

//        public void Update(TextEntry item)
//        {
//            throw new NotSupportedException();
//        }

//        #endregion

//        #region IStorageProvider<TextEntry> Members


//        public IEnumerable<PropertyAggregate> Aggregate(string contextId, MonikerMatch contextMatch, string propertyName)
//        {
//            throw new NotImplementedException();
//        }

//        #endregion
//    }
//}
